package com.Date;

import java.util.Date;

public class Demo01 {
    public static void main(String[] args) {
        Date date = new Date();
        System.out.println(date);

        Date date1 = new Date(0L);
        System.out.println(date1);

        //获取当前时间
        Date date3 = new Date(System.currentTimeMillis());
        System.out.println(date3);
    }
}
